package com.dameng.work.controller;


import com.alibaba.fastjson.JSON;
import com.dameng.work.pojo.Account;
import com.dameng.work.pojo.T03;
import com.dameng.work.service.AccountService;
import com.dameng.work.service.T03Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Controller
public class T03Controller {
    @Autowired
    private T03Service t03Service;



    @RequestMapping("/findT03ListByDate")
    @ResponseBody
    public String findListByDate(){


        List<T03> all = t03Service.findAllByDate();
        Map<String, Object> returnMap = new HashMap<>();

        returnMap.put("state","1" );
        returnMap.put("result",all);
        return  JSON.toJSONString(returnMap);

    }

}
